//
//  YZBaseTableViewModel.h
//  VET
//
//  Created by YZ on 2018/7/11.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YZBaseTableViewModel : NSObject

@property (nonatomic, assign) BOOL loading;

@property (nonatomic, assign, readonly) NSInteger index;

@property (nonatomic, assign) NSInteger totalPage;

@property (nonatomic, strong, readonly) NSMutableArray<NSArray *> *dataSource;

- (NSObject *)modelInSection:(NSInteger)section row:(NSInteger)row;

- (NSArray *)modelsInSection:(NSInteger)section;

- (void)headerRefreshSuccess:(void(^)(id))successBlock fail:(void(^)(NSError *))failBlock;

- (void)footerRefreshSuccess:(void(^)(id))successBlock fail:(void(^)(NSError *))failBlock;

- (BOOL)isNoMoreData;

@end
